<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=gb2312" />
<title>项目管理系统  </title>
<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
}
.tabfont01 {	
	font-family: "宋体";
	font-size: 9px;
	color: #555555;
	text-decoration: none;
	text-align: center;
}
.font051 {font-family: "宋体";
	font-size: 12px;
	color: #333333;
	text-decoration: none;
	line-height: 20px;
}
.font201 {font-family: "宋体";
	font-size: 12px;
	color: #FF0000;
	text-decoration: none;
}
.button {
	font-family: "宋体";
	font-size: 14px;
	height: 37px;
}
html { overflow-x: auto; overflow-y: auto; border:0;} 
-->
</style>

<link href="../css/css.css" rel="stylesheet" type="text/css" />


<script type="text/JavaScript">

</script>
<link href="../css/style.css" rel="stylesheet" type="text/css" />

<jsp:include page="/adminV1/include/include.jsp"></jsp:include>

<script>
function sousuo(){
	window.open("gaojisousuo.htm","","depended=0,alwaysRaised=1,width=800,height=510,location=0,menubar=0,resizable=0,scrollbars=0,status=0,toolbar=0");
}
function selectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			obj[i].checked = true;
		}
	}
}

function unselectAll(){
	var obj = document.fom.elements;
	for (var i=0;i<obj.length;i++){
		if (obj[i].name == "delid"){
			if (obj[i].checked==true) obj[i].checked = false;
			else obj[i].checked = true;
		}
	}
}

function link(){
    document.getElementById("fom").action="yuangong.htm";
   	document.getElementById("fom").submit();
}

function _init(){
	// objid name
	var fields = getFields('tbody1');
	var widths = getWidths('tbody1');
	
	var url = '../../rest/RmSystemUserService/getrmsystemuserlist';
	$.get(url,{},function(v){
		var json = parseToJson(v);
		var list = json['items'];
		for(var i = 0 ;i<list.length;i++){
			var tr = document.createElement("tr");
			var td = document.createElement("td"); 
			td.width = widths[0];
			td.style.background="#FFFFFF";
			td.innerHTML= '<input type="checkbox" name="delid"/>';
			tr.appendChild(td);
			var objid = "";
			for(var j=0;j<fields.length;j++){
				var td2 = document.createElement("td");
				td2.style.background="#FFFFFF";
				td2.width = widths[j+1];
				td2.innerHTML = list[i][fields[j]];
				if(fields[j]=='objid'){
					objid = list[i][fields[j]];
				}
                tr.appendChild(td2);
			}
			var td3 = document.createElement("td"); 
			td3.style.background="#FFFFFF";
			td3.innerHTML= '<a href="yuangong.htm?objid='+objid+'">编辑</a>&nbsp;|&nbsp;<a href="yuangongxiangmu.html">删除</a>';
			tr.appendChild(td3);
			document.getElementById('tbody1').appendChild(tr);
		}
	});
}
	
</script>
</head>
<body onload="_init()">
<form name="fom" id="fom" method="post">
<table width="100%" border="0" cellspacing="0" cellpadding="0">

  <tr>
    <td height="30">      
    	<table width="100%" border="0" cellspacing="0" cellpadding="0">
        	<tr>
         	 <td height="62" background="../images/nav04.gif">
           	 
		   		<table width="98%" border="0" align="center" cellpadding="0" cellspacing="0">
		    			<tr>
			 				<td width="24"><img src="../images/ico07.gif" width="20" height="18" /></td>
			  				<td width="519">
			  					<select name="select2">
				    				<option>按录入时间</option>
				    				<option>按注销时间</option>
			      				</select>
			   					<input name="textfield" type="text" size="12" readonly="readonly"/><span class="newfont06">至</span>
			   					<input name="textfield" type="text" size="12" readonly="readonly"/>	
			   					<input name="Submit" type="button" class="right-button02" value="查 询" /></td>
			   					<td width="679" align="left">
			   					<a href="#" onclick="sousuo()">
			     					<input name="Submit" type="button" class="right-button07" value="高级搜索" />
			   					</a>
			   					&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
			   				</td>	
		    			</tr>
          			</table>
          		</td>
        	</tr>
    </table>
    </td>
    </tr>
  <tr>
    <td>
    
    	<table id="subtree1" style="DISPLAY: " width="100%" border="0" cellspacing="0" cellpadding="0">
        	<tr>
          		<td>
          			<table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
          	 			<tr>
               				<th height="20"><span class="newfont07">
               				选择：
               				<a href="#" class="right-font08" onclick="selectAll();">全选</a>-
               				<a href="#" class="right-font08" onclick="unselectAll();">反选</a></span>
		           				<input name="Submit" type="button" class="right-button08" value="删除所选人员信息" /> 
		           				<input name="Submit" type="button" class="right-button08" value="添加人员信息" onclick="link();" />
		           				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		           				&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; 
	              			</th>
          				</tr>
          				 
                <table width="100%" border="0" cellpadding="4" cellspacing="1" bgcolor="#464646" class="newfont03">
                    <thead> 
                    	<tr>
                    		<th height="20" colspan="9" align="center" bgcolor="#EEEEEE"class="tablestyle_title">
                    		系用户列表 
	                    	</th>
                    	</tr>
                    </thead>
                 <tbody id="tbody1">
                		<tr >
				   			<td width="6%" align="center" bgcolor="#EEEEEE">选择</td>
							<td width="9%" field = "objid" height="20" align="center" bgcolor="#EEEEEE">objid</td>
                    		<td width="9%" field = "name"  align="center" bgcolor="#EEEEEE">name</td>
                    		<td width="9%" field = "code"  align="center" bgcolor="#EEEEEE">code</td>
                    		<td width="9%" field = "email"  align="center" bgcolor="#EEEEEE">email</td>
                    		<td width="9%" field = "descript"  align="center" bgcolor="#EEEEEE">descript</td>
                    		<td width="9%" field = "updatetime"  align="center" bgcolor="#EEEEEE">updatetime</td>
                    		<td width="9%" field = "createtime"  align="center" bgcolor="#EEEEEE">createtime</td>
                    		<td width="19%" align="center" bgcolor="#EEEEEE">操作</td>
                 	 	</tr>
                  </tbody>
                </table>
                
                </td>
              </tr>
            </table></td>
        </tr>
      </table>
      
      
      
      
      
      
      
      
      <table width="95%" border="0" align="center" cellpadding="0" cellspacing="0">
        <tr>
          <td height="6"><img src="../images/spacer.gif" width="1" height="1" /></td>
        </tr>
        <tr>
          <td height="33"><table width="100%" border="0" align="center" cellpadding="0" cellspacing="0" class="right-font08">
              <tr>
                <td width="50%">共 <span class="right-text09">5</span> 页 | 第 <span class="right-text09">1</span> 页</td>
                <td width="49%" align="right">[<a href="#" class="right-font08">首页</a> | <a href="#" class="right-font08">上一页</a> | <a href="#" class="right-font08">下一页</a> | <a href="#" class="right-font08">末页</a>] 转至：</td>
                <td width="1%"><table width="20" border="0" cellspacing="0" cellpadding="0">
                    <tr>
                      <td width="1%"><input name="textfield3" type="text" class="right-textfield03" size="1" /></td>
                      <td width="87%"><input name="Submit23222" type="submit" class="right-button06" value=" " />
                      </td>
                    </tr>
                </table></td>
              </tr>
          </table></td>
        </tr>
      </table></td>
  </tr>
</table>
</form>
</body>
</html>
